package com.example.springboot_demo.demos.web.book_work.Server.ServerImpl;


import com.example.springboot_demo.demos.web.book_work.Mapper.BookUserMapper;
import com.example.springboot_demo.demos.web.book_work.Pojo.entity.User;
import com.example.springboot_demo.demos.web.book_work.Pojo.vo.UserVo;
import com.example.springboot_demo.demos.web.book_work.Server.BookUserServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BookUserServiceImpl implements BookUserServer {

    @Autowired
    private BookUserMapper bookUserMapper;

    @Override
    public UserVo getUser(Integer id) {
        return bookUserMapper.getUserById(id);
    }
}
